﻿<UserControl x:Class="WpfDataUi.Controls.ComboBoxDisplay"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Height="26"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="{Binding FirstGridLength}"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Label x:Name="Label" VerticalAlignment="Center">Property Label:</Label>
        <ComboBox Grid.Column="1" x:Name="ComboBox" 
                  SelectionChanged="ComboBox_SelectionChanged" 
                  TextBlock.Foreground="{Binding DesiredForegroundBrush}"
                  MinWidth="60" VerticalAlignment="Center">
            <ComboBox.ContextMenu>
                <ContextMenu>
                </ContextMenu>
            </ComboBox.ContextMenu>
        </ComboBox>
    </Grid>
</UserControl>
